<include file="Public/header"/>
<include file="Public/menu"/>
<style>
    .order-edit li {
        list-style-type: none;
        cursor: pointer;
        padding: 0 4px;
        float: none;
        width: auto;
        text-align: right;
        font-size: 12px;
        line-height: 23px;
        height: 23px;
    }

    .order-edit li a {

        font-size: 12px;
    }

    .handle-order.active b {
        background: url('/Public/images/arrow-right.gif') no-repeat scroll 50% 50%;
        display: inline-block;
        width: 10px;
        height: 10px;
        vertical-align: center;

    }

    .handle-order b {
        background: url('/Public/images/arrow-down.gif') no-repeat scroll 50% 50%;
        display: inline-block;
        width: 10px;
        height: 10px;
        margin-left: 4px;
        vertical-align: center;
    }


</style>
<!-- 内容页 -->
<div class="content-wrapper">
    <!-- 面包屑 -->
    <section class="content-header">
        <h1>
            统计
            <small>商品销售统计</small>
        </h1>

    </section>

    <!-- 内容 -->
    <section class="content">

        <div class="row">
            <div class="col-md-12">
                <div class="nav-tabs-custom">
                    <ul class="nav nav-tabs">
                        <li <if condition="$view eq 0">class="active"</if> ><a href="/Admin/StoreGoodsSales/goodsSale/view/0.html">商品销售统计</a></li>
                        <li <if condition="$view eq 1">class="active"</if>><a href="/Admin/StoreItemSell/index/view/1.html">商品销售分类</a></li>
                        <li <if condition="$view eq 2">class="active"</if> ><a href="/Admin/StoreItemSell/index/view/2.html">商品销售排行Top100</a></li>
                        <li class="pull-right header"></li>
                    </ul>
                    <div class="tab-content">
                        <div class="box-header">
                            <h3 class="box-title"></h3>
                            <div class="form-inline pull-right">
                                <form id="search_form" name="search_form" action="/Admin/StoreItemSell/index/view/2.html" method="get">
                                    <fieldset>
                                        <div class="input-group input-group-sm">
                                            <select id="sort" name="sort" style="width: auto" class="form-control">
                                                <option value="goods_num" <if condition="$sort eq 'goods_num'"> selected </if>>销售数量</option>
                                                <option value="money" <if condition="$sort eq 'money'"> selected </if>>销售金额</option>
                                            </select>
                                        </div>
                                        <div class="input-group input-group-sm">
                                            <div class="input-group-btn">
                                                <button type="submit" class="btn btn-primary"><i
                                                        class="fa fa-search"></i></button>
                                            </div>
                                        </div>
                                    </fieldset>
                                </form>
                            </div>
                        </div>
                        <div class="tab-pane active" id="tab_0">
                            <div class="box">
                                <!-- /.box-header -->
                                <div class="box-body table-responsive no-padding">
                                    <table class="table table-hover table-view-list"
                                           style="overflow-x:scroll;margin-bottom:35px;">
                                        <tbody>
                                        <tr>
                                            <th>序</th>
                                            <th>商品条码</th>
                                            <th>商品名</th>
                                            <th>商品销售数量</th>
                                            <th>商品销售金额(￥)</th>
                                        </tr>
                                        <foreach name="lists" item="list" key="index">
                                            <tr>
                                                <td>{$index+1}</td>
                                                <td>{$list.barcode}</td>
                                                <td>{$list.p_name}</td>
                                                <td>{$list.nums}</td>
                                                <td>{$list.amount}</td>
                                            </tr>
                                        </foreach>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="box-footer clearfix">

                                    <a class="btn btn-sm btn-primary grid-refresh" style="float: right"
                                       onclick="javascript:location.replace(location.href);"><i
                                            class="fa fa-refresh"></i></a>
                                    {$page}
                                </div>
                                <!-- /.box-body -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </section>
</div>
<!-- 底部 -->
<include file="Public/common_footer"/>
<script src="/Public/admin/jedate/jedate.js"></script>
<link rel="stylesheet" href="/Public/admin/jedate/jedate.css"/>
<script src="/Public/layer/layer.js"></script>
